package com.btkjgc.models;

/**
 * Created by HelloWorld on 2015/4/21.
 */
public class DictionaryT
{
	private int id;
	private Integer entityid;
	private Integer key;
	private String value;
	private String name;

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public Integer getEntityid()
	{
		return entityid;
	}

	public void setEntityid(Integer entityid)
	{
		this.entityid = entityid;
	}

	public Integer getKey()
	{
		return key;
	}

	public void setKey(Integer key)
	{
		this.key = key;
	}

	public String getValue()
	{
		return value;
	}

	public void setValue(String value)
	{
		this.value = value;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	@Override
	public boolean equals(Object o)
	{
		if (this == o)
			return true;
		if (o == null || getClass() != o.getClass())
			return false;

		DictionaryT that = (DictionaryT) o;

		if (id != that.id)
			return false;
		if (entityid != null ? !entityid.equals(that.entityid)
				: that.entityid != null)
			return false;
		if (key != null ? !key.equals(that.key) : that.key != null)
			return false;
		if (name != null ? !name.equals(that.name) : that.name != null)
			return false;
		if (value != null ? !value.equals(that.value) : that.value != null)
			return false;

		return true;
	}

	@Override
	public int hashCode()
	{
		int result = id;
		result = 31 * result + (entityid != null ? entityid.hashCode() : 0);
		result = 31 * result + (key != null ? key.hashCode() : 0);
		result = 31 * result + (value != null ? value.hashCode() : 0);
		result = 31 * result + (name != null ? name.hashCode() : 0);
		return result;
	}
}
